package com.bw.product.service.impl;

import com.alibaba.nacos.shaded.com.google.gson.Gson;
import com.bw.common.core.domain.Result;
import com.bw.product.domain.PmsBrand;
import com.bw.product.domain.PmsCategory;
import com.bw.product.domain.PmsProductAttrValue;
import com.bw.product.domain.PmsSkuInfo;
import com.bw.product.mapper.PmsSkuInfoMapper;
import com.bw.product.service.PmsSkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;


@Service
public class PmsSkuInfoServiceImpl implements PmsSkuInfoService {
    @Autowired
    private PmsSkuInfoMapper pmsSkuInfoMapper;


    /**
     * 查询sku列表
     * @param pmsSkuInfo
     * @return
     */


    @Override
    public List<PmsSkuInfo> selectPmsSkuInfoList(PmsSkuInfo pmsSkuInfo) {
        return pmsSkuInfoMapper.selectPmsSkuInfoList(pmsSkuInfo);
    }

    /**
     * 根据skuId获取sku信息详细信息
     * @param skuId
     * @return
     */
    @Override
    public PmsSkuInfo selectPmsSkuInfoBySkuId(Long skuId) {


        return pmsSkuInfoMapper.selectPmsSkuInfoBySkuId(skuId);
    }


}
